function [xdata ydata zdata] = foot_dim(side,scale,thickness)
% generates a basic 3d representation of a foot

xdata = scale*[0 0.02  0.025 0.025 0.02 -0.02 -0.03 -0.03 -0.015 -0.02 0];
ydata = scale*[0 0.005 0.02  0.08  0.1  0.1  0.08 0.05 0.0335 0.005 0];

if strcmp(side,'left') == 1
    xdata = -xdata;
    ydata = fliplr(ydata);
end

xdata = [xdata;xdata];
ydata = [ydata;ydata];
zdata = [zeros(1,length(xdata)); thickness*ones(1,length(xdata))];